package com.tencent.search.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 支付日志表
 * 
 * @author ian
 * @email ian.ren121@gmail.com
 * @date 2022-04-21 19:34:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "payLog",type = "doc")
public class PaylogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 支付订单号
	 */
	@Id
	private String outTradeNo;
	/**
	 * 创建时间
	 */
	@JSONField(format = "YYYY-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd'T'HH:mm:ss")
	private Date createTime;
	/**
	 * 支付时间
	 */
	@JSONField(format = "YYYY-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd'T'HH:mm:ss")
	private Date payTime;
	/**
	 * 支付金额（分）
	 */
	private Integer totalFee;
	/**
	 * 交易号码
	 */
	private String transactionId;
	/**
	 * 交易状态
	 */
	private String tradeState;
	/**
	 * 订单编号列表
	 */
	private String orderList;
	/**
	 * 支付类型
	 */
	private String payType;
	/**
	 * 
	 */
	private Integer uid;

}
